export class Result<T> {
  constructor(name: string, message: string, data: T) {
    this.name = name;
    this.message = message;
    this.data = data;
  }

  name: string = '';
  message: string = '';
  data: T;

  get success() {
    return !!this.name;
  }
}
